<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0030)http://www.miui.com/index.html -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta property="qc:admins" content="1403742620626643623270454" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">        
<title>MIUI官方论坛 - MIUI论坛</title>
<meta name="keywords" content="MIUI,xiaomi,小米,MIUI刷机,MIUI8,小米手机,小米手机5,红米手机小米刷机,安卓论坛,小米论坛">
<meta name="generator" content="Discuz! X3">
<meta name="author" content="Discuz! Team and Comsenz UI Team">
<meta name="copyright" content="2001-2013 Comsenz Inc.">
<meta name="MSSmartTagsPreventParsing" content="True">
<meta http-equiv="MSThemeCompatible" content="Yes">
<!--<base href="http://www.miui.com/">-->
<base href=".">
<link rel="stylesheet" type="text/css" href="/miui/Public/Home/css/style_6_common.css">
<link rel="stylesheet" type="text/css" href="/miui/Public/Home/css/style_6_forum_newindex.css">
<script type="text/javascript" async="" src="/miui/Public/Home/js/ga.js"></script>
<script src="/miui/Public/Home/js/hm.js"></script>
<script type="text/javascript" async="" charset="utf-8" src="/miui/Public/Home/js/core.php"></script>
<script type="text/javascript">
    var STYLEID = '6', STATICURL = 'static/', IMGDIR = 'http://static.bbs.miui.com/static/image/miui/base', VERHASH = 'qck', charset = 'utf-8', discuz_uid = '0', cookiepre = 'MIUI_2132_', cookiedomain = '', cookiepath = '/', showusercard = '1', attackevasive = '0', disallowfloat = 'login|newthread', creditnotice = '1|经验|米,2|威望|米,3|贡献|米,4|小米粒|米', defaultstyle = '', REPORTURL = 'aHR0cDovL3d3dy5taXVpLmNvbS9pbmRleC5odG1s', SITEURL = 'http://www.miui.com/', JSPATH = 'http://static.bbs.miui.com/static/js/', DYNAMICURL = '';
</script>
<!-- <script src="/miui/Public/Home/js/common.js" type="text/javascript"></script> -->
<meta name="application-name" content="MIUI论坛">
<meta name="msapplication-tooltip" content="MIUI论坛">
<meta name="msapplication-task" content="name=门户;action-uri=http://www.miui.com/portal.php;icon-uri=http://www.miui.com/http://static.bbs.miui.com/static/image/miui/base/portal.ico">
<meta name="msapplication-task" content="name=新帖;action-uri=http://www.miui.com/forum.php;icon-uri=http://www.miui.com/http://static.bbs.miui.com/static/image/miui/base/bbs.ico">
<meta name="msapplication-task" content="name=俱乐部;action-uri=http://www.miui.com/group.php;icon-uri=http://www.miui.com/http://static.bbs.miui.com/static/image/miui/base/group.ico">
<meta name="msapplication-task" content="name=个人中心;action-uri=http://www.miui.com/home.php;icon-uri=http://www.miui.com/http://static.bbs.miui.com/static/image/miui/base/home.ico">
<link rel="archives" title="MIUI论坛" href="http://www.miui.com/archiver/">
<script src="/miui/Public/Home/js/forum.js" type="text/javascript">//var src = /miui/Public/Home/image/nv.png;</script>
</head>

<body id="nv_forum" class="pg_newindex" onkeydown="if(event.keyCode==27) return false;">
    <div id="append_parent"></div><div id="ajaxwaitid"></div>
    <div id="hd">         
        <div class="wp" id="hd_wp">
            <div class="hdc cl">
                <h2><a href="http://www.miui.com/index.html" title="MIUI论坛"><img src="/miui/Public/Home/image/logo.png" alt="MIUI论坛" border="0"></a></h2>
                <div id="um">
                    <div class="p">
                        <?php if(empty($_SESSION['username'])): ?><div class="hd_di1">
                                <a href="<?php echo U('User/login');?>">登录</a>
                                <span class="pipe">|</span>
                                <a href="<?php echo U('User/regist');?>">注册</a>
                            </div>
                        <?php else: ?>
                            <div class="hd_di1">
                                <b>欢迎 <?php echo ($_SESSION['username']); ?> !</b>
                                <span class="pipe">|</span>
                                <a href="<?php echo U('User/logout');?>">退出登录</a>
                                <span class="pipe">|</span>
                                <a href="<?php echo U('Space/index',array('uid'=>$_SESSION['uid']));?>">个人中心</a>
                            </div><?php endif; ?>    
                        <div class="hd_di1" style="margin-right:2px;">
                        </div>
                        <div class="hd_di1" style="line-height:28px;">
                            <a href="javascript:;" id="switchwidth" onclick="widthauto(this)" title="切换到宽版" class="switchwidth">切换到宽版</a>
                        </div>
                    </div>
                    <div style="clear:both"></div>
                    <div id="searchbar">
                        <form id="scbar_form" method="post" autocomplete="off" onsubmit="searchFocus($(&#39;scbar_txt&#39;))" action="http://www.miui.com/search.php?searchsubmit=yes" target="_blank">
                            <input type="hidden" name="mod" id="scbar_mod" value="search">
                            <input type="hidden" name="formhash" value="69fa01e2">
                            <input type="hidden" name="srchtype" value="title">
                            <input type="hidden" name="srhfid" value="0">
                            <input type="hidden" name="srhlocality" value="forum::newindex">
                            <input type="text" name="srchtxt" id="scbar_txt" value="搜索" autocomplete="off" placeholder="搜索">
                            <input type="submit" name="searchsubmit" id="scbar_submit" value="1">
                        <script type="text/javascript">
                        MIUI_initSearchmenu('scbar', '');
                        </script>
                        </form>
                    </div>
                </div>
            </div>

             <div id="nv">
                <ul><li class="a" id="mn_Neacf"><a href="<?php echo U('Index/index');?>" hidefocus="true">首页</a></li><li id="mn_forum"><a href="<?php echo U('Index/bbsIndex');?>" hidefocus="true">新帖</a></li><li id="mn_N30f4"><a href="<?php echo U('BBStype/bbsType');?>" hidefocus="true">全部版块</a></li><?php if(is_array($dataType)): $i = 0; $__LIST__ = $dataType;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li id="mn_N8e4f"><a href="<?php echo U('Home/BBStype/bbsView',array('tid'=>$v[tid]));?>" hidefocus="true" title="MIUI"><?php echo ($v["tname"]); ?><span><?php echo ($v["tname"]); ?></span></a></li><?php endforeach; endif; else: echo "" ;endif; ?><li id="mn_Nf9f9"><a href="<?php echo U('Space/index',array('uid'=>$_SESSION['uid']));?>" hidefocus="true" title="Friday">个人中心<span>Friday</span></a></li><li id="mn_N077a"><a href="<?php echo U('Index/HealthNews');?>" hidefocus="true" target="_blank">生活资讯</a></li></ul>
            </div>
            <div class="p_pop h_pop" id="mn_userapp_menu" style="display: none"></div><div id="mu" class="cl">
            </div><!-- common/pubsearchfor___debug___m --></div>
            <div id="nv_fixed"></div>
        </div>
        <script src="/miui/Public/Home/js/header_extend.js" type="text/javascript"></script>
        
        <div id="wp" class="wp">
            <link rel="stylesheet" href="/miui/Public/Home/css/reset.css">
            <link rel="stylesheet" type="text/css" href="/miui/Public/Home/css/right.css">
            <link rel="stylesheet" href="/miui/Public/Home/css/index.css">
            <script src="/miui/Public/Home/js/jquery.1.7.1.min.js" type="text/javascript"></script>
            <script src="/miui/Public/Home/js/jqeury.qrcode.min.js" type="text/javascript"></script>
            <script src="/miui/Public/Home/js/index.js" type="text/javascript"></script>
            <script type="text/javascript" src="/miui/Public/Home/js/jquery-1.8.3.min.js"></script>
    
<link rel="stylesheet" type="text/css" href="/miui/Public/Home/css/style_6_forum_forumdisplayall.css">
<div id="wp" class="wp">
<!-- 添加推广位 start 20160122 pengya --><!--<a href="http://www.miui.com/forum.php?mod=attachment&amp;aid=Mzg4NDUyM3w1OWNiZTA0NnwxNDU0NDcxNTM0fDE2MTIwN3wzNjM5Njk0" style="display: none;margin:10px 0 0px 0;"><img src="/static/index7/images/activity_16.png"></a>-->
<!-- 添加推广位 end -->

<style id="diy_style" type="text/css"></style>
<!--[diy=diynavtop]--><div id="diynavtop" class="area"></div><!--[/diy]-->
<div id="pt" class="bm cl"></div><div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>

<div class="boardnav">
<div id="ct" class="wp cl ct2">
                
<div class="mn">
<style type="text/css">
.motto{height:43px;line-height:43px; border:1px solid #e6e6e6;background:#ffffff;color:#909090; border-radius:5px;margin:0 0 10px 0;overflow: hidden;}
.motto span{ float:left;}
.motto a{ text-decoration:none;}
.motto a:hover{ text-decoration: none; color:#ff6f3d;}
#motto{max-width: 495px;display: inline-block;overflow: hidden;}
#pt #motto {margin-right: 0;height: 22px;margin-top: 14px; line-height: 22px;}
#mottoImg {position: absolute; visibility: hidden;z-index: 100;}
#innerImg{width:200px;}
.motto_title{float:left;color:#4d4d4d;font-size: 12px;padding-left: 10px;}
.motto_refresh_btn{float:left;margin: 10px 5px auto 0;height: 22px;width:22px;background:url(/miui/Public/Home/image/bbsindex/imghack.png) 0 -48px no-repeat;}
.motto_refresh_btn:hover{background-position-x: -28px;}
.motto_share{height: 16px;width: 16px;float:right;background: url(/miui/Public/Home/image/bbsindex/imghack.png) 0 -23px; }
</style>
<div class="motto">
    <!--天气显示-->
    <span class="motto_title">今日天气：</span>
    <span style="color:#FD6440;margin-left:20px;"><?php echo ($obj->Weather->city); ?>:</span>
    <span style="margin-left:5px;"><?php echo ($obj->Weather->status1); ?></span>
    <span style="margin-left:10px;">转</span>
    <span style="margin-left:10px;"><?php echo ($obj->Weather->status2); ?>;</span>
    <span style="margin-left:20px;">气温:</span>
    <span style="margin-left:10px;"><?php echo ($obj->Weather->temperature2); ?>℃</span>
    <span style="margin-left:5px;"> ~ </span>
    <span style="margin-left:5px;"><?php echo ($obj->Weather->temperature1); ?>℃</span>
    <span style="margin-left:10px;"><?php echo ($obj->Weather->direction1); ?></span>
    <span style="margin-left:10px;"><?php echo ($obj->Weather->power1); ?>级</span>
    <span style="margin-left:20px;">新浪天气 : </span>
    <span style="margin-left:10px;"><?php echo ($obj->Weather->udatetime); ?></span>
<span class="motto_title"></span>
<a class="motto_refresh_btn" href="javascript:;" onclick="_gaq.push([&quot;_trackEvent&quot;, &quot;shareclick&quot;, &quot;refreshMotto&quot;,&quot;C3&quot;]);refreshMotto(this)">&nbsp;</a>
<a target="_blank" id="motto" href="http://www.miui.com/forum.php?mod=redirect&amp;goto=findpost&amp;ptid=7094&amp;pid=128240007">我们做不到改变世界，但我们能做到的，就是不被世界所改变。——Fate丶君不见</a>
<input type="hidden" id="motto_pic" value="http://attach.bbs.miui.com/album/201607/04/131800k23gia6tt3533jz2.jpg">
<input type="hidden" id="motto_content" value="我们做不到改变世界，但我们能做到的，就是不被世界所改变。——Fate丶君不见">
<a href="javascript:;" class="motto_share" title="分享到QQ空间" onclick="_gaq.push([&quot;_trackEvent&quot;, &quot;shareclick&quot;, &quot;qzone&quot;,&quot;C1&quot;]);shareMotto(&quot;qzone&quot;, &quot;#MIUI每日语录#&quot;)" style="margin:13px 10px 0 5px;background-position: -21px -23px;"></a>
<a href="javascript:;" class="motto_share" title="分享到腾讯微博" onclick="_gaq.push([&quot;_trackEvent&quot;, &quot;shareclick&quot;, &quot;qq&quot;,&quot;C2&quot;]);shareMotto(&quot;qq&quot;, &quot;#MIUI每日语录#&quot;)" style="margin: 13px 0px 0 5px;background-position: -42px  -23px;"></a>
<a href="javascript:;" class="motto_share" title="分享到新浪微博" onclick="_gaq.push([&quot;_trackEvent&quot;, &quot;shareclick&quot;, &quot;sina&quot;,&quot;C1&quot;]);shareMotto(&quot;sina&quot;, &quot;#MIUI每日语录#&quot;)" style="margin:13px 0 0 5px;background-position-x: 0px;"></a>
<span style="float:right;">分享</span>
<div id="mottoImg"><img id="innerImg" src="/miui/Public/Home/image/bbsindex/131800k23gia6tt3533jz2.jpg"></div>
</div>
<div style="clear:both;"></div>
<div class="drag">
<!--[diy=diy4]--><div id="diy4" class="area"></div><!--[/diy]-->
</div>



<script type="text/javascript">var lasttime = 1468153487;var listcolspan= '6';</script>
<div id="forumnew" style="display:none"></div>


<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div id="threadlist" style="margin-bottom:5px;" class="TZ tl">
<div class="threadlist_inner">
<table summary="forum_3" cellspacing="0" cellpadding="0" id="threadlisttableid">

<tr>
<th class="common" colspan="6" id="thread_th_4823610">
<!-- 头像 -->
<div class="avatarbox b_rad_8"><a href="<?php echo U('Space/index',array('uid'=>$vo['uid']));?>"><img width="40" height="40" class="b_rad_8" src="/miui/Public/Home/image/space/touxiang/<?php echo ($vo["userimage"]); ?>" onerror="this.onerror=null;this.src=&#39;http://avatar.bbs.miui.com/images/noavatar_small.gif&#39;"></a></div>
<!-- /头像 -->
<div class="avatarbox-info">
<div class="sub-tit">


<a href="<?php echo U('BBStype/bbsView',array('tid'=>$vo['tid']));?>" target="_blank" class="thread_cate">【<?php echo ($vo["tname"]); ?>】</a>
<a href="<?php echo U('BBSinvit/BBSinvit',array('inid'=>$vo['inid']));?>" style="font-weight: bold;color: #EE1B2E;" onclick="atarget(this)" class="s xst">  [ <?php echo (date('Y-m-d',$vo["intime"])); ?> ]  <?php echo ($vo["intitle"]); ?></a>
</div>
<div class="sub-infos">
<a href="<?php echo U('Space/index',array('uid'=>$vo['uid']));?>" c="1" mid="card_554"><?php echo ($vo["username"]); ?></a>
<span class="pipe">|</span>
浏览：<span class="number_d"> <?php echo ($vo["inpv"]); ?></span>
<span class="pipe">|</span>
评论：<span class="number_d"><a  class="xi2"><?php echo ($vo["count"]); ?></a></span>
<span class="pipe">|</span>
<a href="<?php echo U('Space/index',array('uid'=>$vo['comment'][0]['uid']));?>" c="1" mid="card_5395"><?php echo ($vo['comment'][0]['username']); ?></a><span></span>
<a ><span title=""><?php echo ($vo['vtime']); ?></span></a>
</div>
</div>
</th>
</tr>
</tbody>
</table>
</div>
</div><?php endforeach; endif; else: echo "" ;endif; ?>

<div id="bottomBBS" style="width:700px;height:auto;"></div>





        
<div class="bm bw0 pgs cl" style="margin:12px 0px 30px 0px;">
<span id="fd_page_bottom"><div class="pg"></div></span><div style="display:inline-block;margin-top:4px;color:#8f8f8f;" class="z">
  
</div>
        
</div>
<!--[diy=diyfastposttop]--><div id="diyfastposttop" class="area"></div><!--[/diy]-->
<!--[diy=diyforumdisplaybottom]--><div id="diyforumdisplaybottom" class="area"></div><!--[/diy]-->
</div>

    
                <div id="float_right" class="right">
                    <div class="big_post_btn">
                       <a href="<?php echo U('BBSinvit/BBSinvitAddView');?>" onclick="showWindow(&#39;nav&#39;,this.href,&#39;get&#39;,0)"></a>
                    </div>
                    <div class="punch_card">
                        <div class="part part_0" style="position:relative">
                            <div style="position:absolute;top:-90px;z-index:100" id="sign_show_area">
                            </div>
                            <!-- 如果控制器返回值等于0或者未登录 -->
                            <?php if($tag != 1): ?><div class="part_footer pf_sign" id="sign_area">
                                    <p class="pf_num"><span>4810579</span></p>
                                    <p class="pf_day">打卡领奖</p>
                                    <a class="pf_sign_link link_no_cursor" ></a>
                                </div>
                            <!-- 如果控制器返回1表示今天已签到 -->
                            <?php else: ?>
                                <div class="part_footer pf_signed" id="sign_area">
                                    <p class="pf_num"><span>4810579</span></p>
                                    <p class="pf_day">打卡领奖</p>
                                    <a class="pf_sign_link link_no_cursor" ></a>
                                </div><?php endif; ?>
                        </div>
                    </div>
                    <script type="text/javascript">
                    $(".pf_sign_link").on("click", function() {
                        $.ajax({
                            type:'GET',
                            url:"<?php echo U('User/score');?>",
                            success:function(data)
                            {
                                if (data == '0') {
                                    alert('请先登录!');
                                    return false;
                                }else{
                                    // 如果已经签到按钮变为已签到
                                    jQuery("#sign_area").removeClass("pf_sign").addClass("pf_signed");
                                    // 按钮不能点击
                                    jQuery(".pf_sign_link").off("click");
                                }
                                
                            },
                        })  
                    });

                    </script>
                    <div class="update_version">
                        <h2>MIUI已持续更新291周</h2>
                        <h3><a href="http://www.miui.com/thread-4748270-1-1.html" target="_blank">最新版：6.6.30</a></h3>
                       <div class="clearfix">
                            <a href="<?php echo U('Download/index');?>" class="download_link">ROM下载</a>
                            <a href="http://www.miui.com/shuaji.html" class="version_rec">刷机教程</a>
                        </div>
                    </div>
                    <div class="recommend_section">
                        <h2 class="right_title">推荐版块</h2>
                        <div class="clearfix">
                            <div class="module cl xl xl2">
                                <ul><li class="lc"><a href="http://www.miui.com/forum-587-1.html" title="红米Note 3" target="_self">红米Note 3</a></li></ul>
                            </div>                    
                        </div>
                        <a href="http://www.miui.com/forum.php?forumlist=1" target="_self" class="all_section">所有版块&nbsp;&gt;</a>
                    </div>
                                    
                    <div class="hot_posts">
                        <h2 class="right_title">热帖排行</h2>
                        <div class="hot_posts_article">
                            <ul class="u_article" style="margin-top:8px"><li><a href="http://www.miui.com/thread-3415047-1-1.html" title="近期“回复可见”的灌水处理公告" target="_blank">近期“回复可见”的灌水处理公告</a></li></ul>
                        </div>
                    </div>
                </div>
                <div style="clear: both; "></div>
            </div>
        </div>

        
        <script type="text/javascript">
            _attachEvent($('weixin_title'), 'click', function (event) {
                var t = $('weixin_logo');
                var te = $('weixin_title');
                event.stopPropagation();
                if(t.style.display != 'block'){
                    t.style.display = 'block';
                    te.style.fontWeight = 'bold';
                    te.style.color = '#4c4c4c';
                }else{
                    t.style.display = 'none';
                    te.style.fontWeight = 'normal';
                    te.style.color = '#909090';
                }
            });

            jQuery(function() {
                var SignAjax = Ajax("JSON");

                
                jQuery(document).on("click", "#lottery_step_0", function() {
                    SignAjax.get('extra.php?mod=sign/index&op=signlottery', SignAjaxCallback.signlottery);
                });
                jQuery(document).on("click", "#lottery_step_1", function() {
                    jQuery("#sign_show_area").html("");
                });
                jQuery(document).on("click", "#lottery_step_2", function() {
                    showWindow('__signconfirmarea__', 'extra.php?mod=sign/index&op=confirmlottery', 'get', 0);
                    setTimeout(function() {jQuery("#sign_show_area").html("");}, 1000);
                });
                var SignAjaxCallback = {
                    sign : function(res) {
                        if (res.error == 0) {
                            showWindow('__signarea__', '/extra.php?mod=sign/index&op=error&msg=' + res.message, 'get', 0);
                            return;
                        }
                        jQuery("#sign_show_area").html(res.template);
                        if (!res.lottery) {
                            setTimeout(function() {jQuery("#sign_show_area").html("");}, 3000);
                        } else {
                            jQuery("#sign_show_area").css("top", res.lotterytype ? "-182px" : "-242px");
                            jQuery("#ct").children("div.sd").css("overflow", "visible");
                        }
                        jQuery(".pf_num>span").html(parseInt(jQuery(".pf_num>span").html()) + 1);
                        
                        
                        
                        jQuery(".link_no_cursor").css("cursor", "default");
                        jQuery(".pf_sign_rank").attr("href", "extra.php?mod=sign/rank");
                    },

                    signlottery : function(res) {
                        if (res.error == 0) {
                            showWindow('__signarea__', '/extra.php?mod=sign/index&op=error&msg=' + res.message, 'get', 0);
                            return;
                        }
                        jQuery("#sign_show_area").html(res.template);
                        if (jQuery("#lottery_step_1").get(0)) {
                            jQuery(".pf_sign_link").remove();
                            setTimeout(function() {jQuery("#sign_show_area").html("");}, 3000);
                        }
                    },

                    checklottery : function(res) {
                        if (res.error == 0) {
                            showWindow('__signarea__', '/extra.php?mod=sign/index&op=error&msg=' + res.message, 'get', 0);
                            return;
                        }
                        jQuery("#sign_show_area").html(res.template);
                        jQuery("#sign_show_area").css("top", res.lotterytype ? "-182px" : "-242px");
                        jQuery("#ct").children("div.sd").css("overflow", "visible");
                        jQuery(".pf_sign_link").off("click");
                    }
                }
            })
    _attachEvent(window, 'scroll', function () {
    var right_fixed = $('float_right');
    var left_content = $('left_content');
    var viewPortHeight = parseInt(document.documentElement.clientHeight);
    var scrollHeight = parseInt(document.body.getBoundingClientRect().top);
    var sw = right_fixed.clientWidth;
    var sh = right_fixed.clientHeight;
    var basew = parseInt(left_content.clientWidth);

    var divs = right_fixed.getElementsByTagName('div');
    if(scrollHeight < -600 - sh){
    right_fixed.style.position = 'fixed';
    right_fixed.style.top = '58px';
    var left = parseInt(fetchOffset(left_content)['left']);
    right_fixed.style.left = ( basew + left + 13) + 'px';
    for(i=0;i<divs.length;i++){
    if(divs[i].className == 'hot_activity' || divs[i].className == 'hot_posts' || divs[i].className == 'focus_us'){
    divs[i].style.display = 'none';
    }
    }
    }else{
    right_fixed.style.position = '';
    for(i=0;i<divs.length;i++){
    if(divs[i].className == 'hot_activity' || divs[i].className == 'hot_posts' || divs[i].className == 'focus_us'){
    divs[i].style.display = 'block';
    }
    }
    }
    });
        </script>
        <script>fixed_top_nv();</script>    </div>

    
    <script>
        
    </script>

</body></html>